﻿using System;
using MongoDB.Bson;

namespace QuotationService.HistoryQuotation
{
    /// <summary>
    /// 日线的历史数据类
    /// </summary>
    internal class FutureDailyData
    {
        public ObjectId _id;

        #region 属性（数据）
        /// <summary>
        /// 商品ID
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 交易日
        /// </summary>
        public Int32 TradeDay { get; set; }
        
        /// <summary>
        /// 开盘价
        /// </summary>
        public double OpenPrice { get; set; }

        /// <summary>
        /// 最高成交价
        /// </summary>
        public double HighPrice { get; set; }

        /// <summary>
        /// 最低成交价
        /// </summary>
        public double LowPrice { get; set; }

        /// <summary>
        /// 收盘价
        /// </summary>
        public double ClosePrice { get; set; }

        /// <summary>
        /// 总量
        /// </summary>
        public Int64 TotalKnockQty { get; set; }

        /// <summary>
        /// 总成交金额
        /// </summary>
        public double TotalKnockAmt { get; set; }


        /// <summary>
        /// 当前持仓
        /// </summary>
        public Int64 OpenPosition { get; set; }

        /// <summary>
        /// 昨结算价
        /// </summary>
        public double PreSettlementPrice { get; set; }
        #endregion

       
    }
}
